package com.tj.collection.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.google.common.collect.Maps;
import com.tj.collection.db.dao.RptCustomQuerySqlDao;
import com.tj.collection.db.entity.RptCustomQuerySqlEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
* User: linqu
* Date: 2023-10-24
* Time: 16:55:09.595
*/

@Repository
public class RptCustomQuerySqlDaoImpl extends AbstractBaseMapper<RptCustomQuerySqlEntity> implements RptCustomQuerySqlDao {

    @Override
    public List<RptCustomQuerySqlEntity> listRptCustomQuerySqlByType(Integer type) {
        final HashMap<String, Object> params = Maps.newHashMap();
        params.put("type", type);
        params.put("deleted", 0);
        return this.getSqlSession().selectList(this.getStatement("listRptCustomQuerySqlByType"), params);
    }
}